package com.my.study.springframework.util;

/**
 * @author: yidujun
 * @create: 2021/07/12 20:43
 */
@FunctionalInterface
public interface ErrorHandler {

    /**
     * Handle the given error, possibly rethrowing it as a fatal exception.
     *
     * @param t 异常
     */
    void handleError(Throwable t);

}
